const http=require("http");
const fs=require("fs");

const server=http.createServer(function (req,res) {

fs.readFile("./index.html",function (err,results) {
if(!err){
    res.end(results);
}else{
    res.end("err");
}

})


})

server.listen(8081,function () {
console.log("success")
})